const Sequelize = require('sequelize');
const sequelize = new Sequelize('webdatabase','test','test',{
    host:'localhost',
    dialect:'mysql',
    operatorsAliases:false,
    operatorsAliases: Sequelize.Op, // 使用 Sequelize.Op 对象定义操作符别名
    pool:{
        max: 5,
        min: 0,
        acquire: 30000,
        idle: 10000
    },
    timezone: '+08:00'  //东八时区
});

module.exports = {
    sequelize
};